﻿@model IEnumerable<ESupervision.Models.MeetingNote>

@{
    ViewBag.Title = "Meeting Notes Management";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Your Meeting Notes</h2>

<p>
    @Html.ActionLink("Create New", "Create", new { id = ViewBag.MEventID })
</p>
<div class="row">
    <div class="panel panel-primary">
        <div class="panel-heading">
        </div>
        <div class="panel-body">
            <div class="table-responsive">
                <table class="table table-hover table-condensed">
                    <thead>
                        <tr>
                            <th>
                                Name Meeting Event
                            </th>
                            <th>
                                @Html.DisplayNameFor(model => model.CreatedTime)
                            </th>
                            <th>
                                @Html.DisplayNameFor(model => model.Note)
                            </th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                        @foreach (var item in Model)
                        {
                            <tr>
                                <td>
                                    @Html.DisplayFor(modelItem => item.MeetingEvent.Subject)
                                </td>
                                <td>
                                    @Html.DisplayFor(modelItem => item.CreatedTime)
                                </td>
                                <td>
                                    @Html.DisplayFor(modelItem => item.Note)
                                </td>
                                <td>
                                    @Html.ActionLink("Edit", "Edit", new { id = item.MeetingNoteID }) |
                                    @Html.ActionLink("Delete", "Delete", new { id = item.MeetingNoteID })
                                </td>
                            </tr>
                        }
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<p>
    @Html.ActionLink(" Back to details", "Details", "Meeting", new { id = ViewBag.MEventID }, new { @class = "btn btn-success btn-sm glyphicon glyphicon-repeat" })
</p>